package com.atguigu.guli.service.edu.service;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.edu.entity.Teacher;
import com.atguigu.guli.service.edu.entity.query.TeacherQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author atguigu
 * @since 2020-10-14
 */
public interface TeacherService extends IService<Teacher> {
    Page<Teacher> selectTeaByCondition(Integer pages, Integer limit, TeacherQuery teacherQuery);

    List<Map<String, Object>> selectNameListByKey(String key);

    boolean removeAvatarById(String id);

    Map<String, Object> selectTeacherInfoById(String id);

    List<Teacher> selectHotTeacher();

}
